import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const cinemaApi = {
    //添加放映厅
    add:(params) => {
        return myAxios.post(BaseUrl +'cinema-room/add',params)
    },
    //通过id查询所有放映厅列表
    list:(params)=>{
        return myAxios.get(BaseUrl +'cinema-rooms/cinemaid',params)
    },
    //查询所有放映厅类型
    queryAlltypes:() => {
        return myAxios.get(BaseUrl +'cinema/room-list-type')
    },
    //删除放映厅
    del:(params)=>{
        return myAxios.post(BaseUrl + 'cinema-room/del',params)
    },
    //给放映厅添加座位
    isnertRoom:(params) => {
        return myAxios.post(BaseUrl + 'cinema-room/edit-seat-template',params)
    },
       //通过id查询放映厅信息
       queryByid:(params) => {
        return myAxios.get(BaseUrl +'cinema-room/query',params)
    },
}

export default cinemaApi